﻿#pragma once

#ifndef CUSTOMSLIDER_HPP
    #define CUSTOMSLIDER_HPP
#include "common.h"

#include <QSlider>
#include <QWheelEvent>  // 事件循环

class CustomSlider : public QSlider {
    Q_OBJECT

public:
    explicit CustomSlider(QWidget *parent = nullptr) : QSlider(parent) {};

protected:
    void wheelEvent(QWheelEvent* event) override { event->ignore(); };// 忽略鼠标滚轮事件
};

#endif // CUSTOMSLIDER_HPP
